package demo9;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石方旭
 * Date: 2022-04-17
 * Time: 13:12
 */


public class Father {
    //private int i = test();   //父类非静态变量
    private static int j = method();  //父类静态变量

    static {  //父类静态代码块
        System.out.print("(1)");
    }

    Father() {  //父类构造器
        System.out.print("(2)");
    }

    {    //父类非静态代码块
        System.out.print("(3)");
    }

//    private int test() {
//        System.out.print("(4)");
//        return 1;
//    }

    private static int method() {
        System.out.print("(5)");
        return 1;
    }

}
